
/*
var sUserAgent = navigator.userAgent.toLowerCase();
if (sUserAgent.indexOf('baiduboxapp') <0)
{
*/

 // 展开全文添加
 var a=$(".article_content").outerHeight();
      var styleEle='<style type="text/css">'+
    '.article_content{position:relative;height:666px;overflow:hidden;}'+
    '.teles{position:absolute;left:0; bottom:0;display:block; width:100%; height: 84px;color:#ff9c00; text-align: center;  font-size:14px; background: linear-gradient(to bottom , rgba(255,255,255,0) , #fff 60%);}'+
    '.teles i{display: inline-block; line-height:28px; font-size:18px; background-size:18px auto; padding-top:32px;padding-bottom:20px; }'+
    '.teles i:after {article_content:"";position:absolute;bottom:4px;left: 50%;width:33px;height: 16px;background-repeat: no-repeat; -webkit-background-size: 100% 100%;background-size: 100% 100%;background-image:url(/templets/jianshen8/images/arrow.png);-webkit-animation: arrow 400ms ease-out alternate infinite;animation: arrow 400ms ease-out alternate infinite;margin-left: -6px;}'+
    '@-webkit-keyframes arrow{from{-webkit-transform:translate3d(-webkit-calc(-50% + 6px),5px,0);transform:translate3d(calc(-50% + 6px),5px,0)}to{-webkit-transform:translate3d(-webkit-calc(-50% + 6px),0,0);transform:translate3d(calc(-50% + 6px),0,0)}}'+
    '@keyframes arrow{from{-webkit-transform:translate3d(-webkit-calc(-50% + 6px),5px,0);transform:translate3d(calc(-50% + 6px),5px,0)}to{-webkit-transform:translate3d(-webkit-calc(-50% + 6px),0,0);transform:translate3d(calc(-50% + 6px),0,0)}}'+
    '</style>';
    $("body").prepend(styleEle);
    var b=$(".article_content").outerHeight();
    var sheight=100-Math.ceil(b/a*100);
    if(sheight&&a>1000){
        $(".article_content").append('<div class="teles"><i>展开剩余的'+ sheight+"%"+'</i></div>');
        $(".teles").on("click",function(){
             $(".article_content").animate({height:a},function(){$(".article_content").height('auto')});
             $(this).hide();
             return false;
        })

    }else{

        $(".article_content").css("height",'auto');

    }


/*
}
*/